package com.project.api.ym.model;

import com.project.api.common.Unit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
public class Roles {
    public static String tableName = Unit.SQL_PF+"roles";
    public static String tableRolesRules = Unit.SQL_PF+"roles_rules";
    private long id;
    private String name;
    private int opt; //1可以被操作，2不可以
    private List<Rules> rules;
    private boolean isfull;//是否拥有超级权限

    public boolean isIsfull() {
        return isfull;
    }

    public boolean getIsfull() {
        return isfull;
    }

    public void setIsfull(boolean isfull) {
        this.isfull = isfull;
    }

    public List<Rules> getRules(long id) {
        return rules;
    }

    public void setRules(List<Rules> rules) {
        this.rules = rules;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Rules> getRules() {
        return rules;
    }

    public int getOpt() {
        return opt;
    }

    public void setOpt(int opt) {
        this.opt = opt;
    }
}
